<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><?php echo $get_near_server;?> - Bá Thiên Địa</title>
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    <script type="text/javascript" src="/dang-nhap/static/templates/frontend/menu_right/sidebar/jquery.cookie.js"></script>    
    <?php
    if($classBar === 1){
        echo '<script type="text/javascript" src="/dang-nhap/static/templates/frontend/menu_right/sidebar/_common.js"></script>';
    } else {
        echo '<script type="text/javascript" src="/dang-nhap/static/templates/frontend/menu_right/sidebar/common.js"></script>';
    }
    ?>
    <script type="text/javascript" src="/static/templates/frontend/home/js/notice.js"></script>
    <script type="text/javascript" src="http://static.bathiendia.com/swfobject.js"></script>
    <link rel="stylesheet" type="text/css" href="/dang-nhap/static/templates/frontend/menu_right/sidebar/style.css" media="screen" />
    <script type="text/javascript">
        //change server id redirect value
        $(document).ready(function(){
           $( "#server_id" ).change(function() {             
                
                var serverId    =   $(this).val();
                if(serverId == ''){
                    alert("Vui lòng chọn máy chủ!");exit;
                }
                var confirmText =   "Bạn muốn chuyển máy chủ. Vui lòng xác nhận?";
                if(confirm(confirmText)) {
                    updateURL = '/play/'+serverId+'/landing';
                    $.ajax(
                    {
                        success:function(data)
                        {
                            window.location.href=updateURL;
                        },
                        error: function() 
                        {
                            alert("Vui lòng thử lại!");exit;
                        }
                    });
                }
                return false;
            });
        });
    </script>
</head>
<body scroll="no">
    <div id="wrapper">
        <div id="notice"></div>
        <span id="loading">
            <span style="height:17px;font-size:15px;">&nbsp;</span>
        </span>
    </div>
<!--begin-->
    <div id="center-wrapper">
        <div class="dhe-example-section" id="ex-4-1">
            <div class="dhe-example-section-content">
                <div class="use-sidebar sidebar-at-right" id="main">
                    <div id="content">
                        
                        <div style="width:100%;height:100%;background-color:black">
                            <div id="flashdiv" style="font-size: 14px; color: #000000">
                                <h1 style="color: #ffffff">Xin chào, để trải nghiệm tốt hơn các trò chơi, hãy tải về và cài đặt Flash Player 9.0</h1>
                                <br>
                                <p><a href="http://www.adobe.com/go/getflashplayer" style="color: #ffffff">Nhấn vào đây để tải về</a></p>
                            </div>
                            <script type=text/javascript>	
                            var so = new SWFObject("<?php echo $link ?>", "zt_index", "1100px", "740px", "9", "#000000");
                            so.addVariable("cdnUrl","http://static.bathiendia.com/<?php echo $v_link ?>/");
                            so.addParam("quality", "high");
                            so.addParam("allowScriptAccess", "always");
                            so.addParam("name", "zt_index");
                            so.addParam("id", "zt_index");
                            so.addParam("align", "middle");
                            so.addParam("menu", "false");
                            so.addParam("pluginspage", "http://www.adobe.com/go/getflashplayer");
                            so.addParam("scale", "noscale");
                            so.addParam("wmode","direct");
                            so.addParam("play", "true");
                            so.addParam("loop", "false");
                            so.write("flashdiv");

                            </script>
                        </div>

                    </div>
                    <div id="sidebar">

                            <div class="logo"><a href="/"><img src="http://bathiendia.com/dang-nhap/static/templates/frontend/menu_right/images/logo.png" /></a></div>
                            <div class="user">
                                <div class="user_box">
                                  <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="10%" class="user_td"><img src="/dang-nhap/static/templates/frontend/menu_right/images/ic01.png" width="23" height="22" /></td>
                                      <td width="s0%" class="user_td"><?php echo substr($user_info->username, 0, 12).'...';?></td>
                                      <td width="20%" class="user_td"><a href="/dang-nhap/dang-xuat">Thoát</a></td>
                                    </tr>
                                  </table>
                               </div>

                              <div class="user_box">
                                    <div class="user_server">
                                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                            <tr>
                                              <td class="user_server_td">Máy chủ đang chơi</td>
                                            </tr>
                                            <tr><td class="user_server_td"><span href="#" class="server1">
                                                <?php
                                                echo $get_near_server;
                                                   ?>
                                                    </span></td></tr>
                                            <tr><td class="user_server_td">
                                                <select class="user_server_select" id="server_id">
                                                   <option value="">Chọn server</option>
                                                   <?php
                                                   foreach($list_server as $key => $value){
                                                       ?>
                                                            <option value="<?php echo $value->serverName;?>"><?php echo $value->fullName;?></option>
                                                        <?php
                                                   }
                                                   ?>
                                                </select>
                                            </td></tr>
                                      </table>
                                    </div>
                              </div>
                            </div>
                            <div class="info">
                                <?php
                                if($classBar === 1){
                                    echo '<a target="_blank" href="/news/su-kien/co-mo-chien-than.html" class="nt" title="Sự kiện"><img style="margin: 16px;" width="40px" src="http://bathiendia.com/static/templates/frontend/home/images/hot.gif" alt="Hot" title="hot" /></a>';
                                } else {
                                    echo '<a target="_blank" href="/news/su-kien/goi-qua-ba-gia.html" class="nt" title="Sự kiện"></a>';
                                }
                                ?>
                                <a target="_blank" href="http://id.bathiendia.com/nap-the" class="napthe" title="Tin Tức" >Nạp thẻ</a>
                                <a target="_blank" href="/news" class="but" title="Tin Tức" >Tin Tức</a>
                                <a target="_blank" href="/news/huong-dan" class="but" title="Cẩm Nang Tân Thủ" >Cẩm Nang</a>
                                <a target="_blank" href="/giftcode" class="but" title="Giftcode" >Giftcode</a>
                                <a target="_blank" href="http://forums.bathiendia.com" class="but" title="Diễn Đàn" >Diễn Đàn</a>
                                <a target="_blank" href="https://www.facebook.com/bathiendia.game" class="but" title="Fanpage" >Fanpage</a>
                            </div>

                    </div>
                    <a href="#" id="separator"></a>
                </div>
            </div>
        </div>
    </div>
<!--end-->
<!-- Google Code for Dang ky Conversion Page -->

<script type="text/javascript">

/* <![CDATA[ */

var google_conversion_id = 982545226;

var google_conversion_language = "en";

var google_conversion_format = "3";

var google_conversion_color = "ffffff";

var google_conversion_label = "7QYZCLbP8wkQyubB1AM";

var google_remarketing_only = false;

/* ]]> */

</script>

<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">

</script>

<noscript>

<div style="display:inline;">

<img height="1" width="1" style="border-style:none;" alt="" src="//www.googleadservices.com/pagead/conversion/982545226/?label=7QYZCLbP8wkQyubB1AM&amp;guid=ON&amp;script=0"/>

</div>

</noscript>
</body>
</html>